package com.atlzk.group.order.feign;

import com.atlzk.common.utils.R;
import com.atlzk.group.user.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author King
 * @date 2021/6/19 - 11:06
 */
@FeignClient("group-ums")
@RequestMapping("/user/user")
public interface UserFeignService {
    @RequestMapping("/findUserByUserId")
    public UserEntity findUserByUserId(@RequestParam("userId") Long userId);

    @RequestMapping("/update")
    //@RequiresPermissions("user:user:update")
    public R update(@RequestBody UserEntity user);
}
